package com.kjsb.service;

import com.kjsb.entity.Unit;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Transactional
public interface UnitService {
    /**
     * 修改
     * @param unit
     * @return
     */
    public boolean updateUnits(Unit unit);

    /**
     * 按unitid删除
     * @param unitid
     * @return
     */
    public boolean deleteUnits(Integer unitid);

    /**
     * 查询全部
     * @return
     */
    public List<Unit> getAllUnits();

    /**
     * 按uid查询
     * @param uid
     * @return
     */
    public Unit getByUId(Integer uid);

}
